package org.webcamp.questionary.services.impl;

import java.util.List;

import org.apache.log4j.Logger;
import org.webcamp.questionary.dao.QuestionaryDao;
import org.webcamp.questionary.dto.Questionary;
import org.webcamp.questionary.services.QuestionaryService;

public class QuestionaryServiceImpl implements QuestionaryService {

	private Logger log = Logger.getLogger(getClass());
	private QuestionaryDao questionaryDao;

	public void setQuestionaryDao(QuestionaryDao questionaryDao) {
		this.questionaryDao = questionaryDao;
	}

	@Override
	public List<Questionary> getAllQuestionaries() {
		log.info("Loading questionaries");
		return questionaryDao.getAllQuestionaries();
	}

}
